/**
 
package GUILayer;

import ControlLayer.CtrlCustomer;
import DBLayer.DBCustomer;
import ModelLayer.Customer;

import com.cloudgarden.layout.AnchorConstraint;
import com.cloudgarden.layout.AnchorLayout;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.sql.SQLException;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JTextField;
import javax.swing.ListModel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

public class AddCustomer extends javax.swing.JFrame {
	private JLabel jLabel1;
	private JLabel jLabel2;
	private JLabel jLabel3;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JButton jButton1;
	private JComboBox jComboBox1;
	private JTextField jTextField7;
	private JTextField jTextField6;
	private JTextField jTextField5;
	private JTextField jTextField4;
	private JTextField jTextField3;
	private JTextField jTextField2;
	private JTextField jTextField1;
	private JLabel jLabel9;
	private JLabel jLabel8;
	private JLabel jLabel7;
	private JLabel jLabel6;

	
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				AddCustomer inst = new AddCustomer();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public AddCustomer() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			AnchorLayout thisLayout = new AnchorLayout();
			
			
			
			
			getContentPane().setLayout(thisLayout);
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				jButton1 = new JButton();
				getContentPane().add(jButton1, new AnchorConstraint(1, 137, 11, 480, AnchorConstraint.ANCHOR_NONE, AnchorConstraint.ANCHOR_ABS, AnchorConstraint.ANCHOR_ABS, AnchorConstraint.ANCHOR_NONE));
				jButton1.setText("Add");
				jButton1.setVisible(true);
				jButton1.setPreferredSize(new java.awt.Dimension(87, 23));
				jButton1.addActionListener(new java.awt.event.ActionListener() {
		            public void actionPerformed(java.awt.event.ActionEvent evt) {
		                try {
							insertCustomer(evt);
						} catch (SQLException e) {
							// TODO Auto-generated catch block
							e.printStackTrace();
						}
		            }
				});
			}
			{
				ComboBoxModel jComboBox1Model =	new DefaultComboBoxModel(new String[] { "Item One", "Item Two" });
				jComboBox1 = new JComboBox();
				getContentPane().add(jComboBox1, new AnchorConstraint(368, 957, 456, 683, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jComboBox1.setModel(jComboBox1Model);
				jComboBox1.setPreferredSize(new java.awt.Dimension(105, 23));
			}
			{
				ListModel jList1Model =	new DefaultComboBoxModel(new String[] { "Item One", "Item Two" });
			}
			{
				//Club
				jTextField7 = new JTextField();
				getContentPane().add(jTextField7, new AnchorConstraint(475, 957, 562, 683, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jTextField7.setPreferredSize(new java.awt.Dimension(105, 23));
				
			}
			{
				//Zip
				jTextField6 = new JTextField();
				getContentPane().add(jTextField6, new AnchorConstraint(269, 957, 356, 683, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jTextField6.setPreferredSize(new java.awt.Dimension(105, 23));
				
			}
			{
				//Address
				jTextField5 = new JTextField();
				getContentPane().add(jTextField5, new AnchorConstraint(158, 957, 246, 683, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jTextField5.setPreferredSize(new java.awt.Dimension(105, 23));
				
			}
			{
				//PhoneNo
				jTextField4 = new JTextField();
				getContentPane().add(jTextField4, new AnchorConstraint(475, 449, 562, 238, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jTextField4.setPreferredSize(new java.awt.Dimension(81, 23));
				
			}
			{
				//Last Name
				jTextField3 = new JTextField();
				getContentPane().add(jTextField3, new AnchorConstraint(368, 449, 456, 238, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jTextField3.setPreferredSize(new java.awt.Dimension(81, 23));
				
			}
			{
				//First Name
				jTextField2 = new JTextField();
				getContentPane().add(jTextField2, new AnchorConstraint(261, 449, 349, 240, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jTextField2.setPreferredSize(new java.awt.Dimension(80, 23));
				
			}
			{
				//Cpr No
				jTextField1 = new JTextField();
				getContentPane().add(jTextField1, new AnchorConstraint(158, 449, 246, 240, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jTextField1.setPreferredSize(new java.awt.Dimension(80, 23));
				
			}
			{
				jLabel9 = new JLabel();
				getContentPane().add(jLabel9, new AnchorConstraint(501, 561, 562, 496, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel9.setText("Club");
				jLabel9.setPreferredSize(new java.awt.Dimension(25, 16));
			}
			{
				jLabel8 = new JLabel();
				getContentPane().add(jLabel8, new AnchorConstraint(379, 550, 440, 496, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel8.setText("City");
				jLabel8.setPreferredSize(new java.awt.Dimension(21, 16));
			}
			{
				jLabel7 = new JLabel();
				getContentPane().add(jLabel7, new AnchorConstraint(272, 540, 333, 496, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel7.setText("Zip");
				jLabel7.setPreferredSize(new java.awt.Dimension(17, 16));
			}
			{
				jLabel6 = new JLabel();
				getContentPane().add(jLabel6, new AnchorConstraint(169, 180, 230, 32, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel6.setText("Cpr No");
				jLabel6.setPreferredSize(new java.awt.Dimension(57, 16));
			}
			{
				jLabel5 = new JLabel();
				getContentPane().add(jLabel5, new AnchorConstraint(169, 670, 230, 496, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel5.setText("Address");
				jLabel5.setPreferredSize(new java.awt.Dimension(67, 16));
			}
			{
				jLabel4 = new JLabel();
				getContentPane().add(jLabel4, new AnchorConstraint(486, 227, 547, 32, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel4.setText("Phone No");
				jLabel4.setPreferredSize(new java.awt.Dimension(75, 16));
			}
			{
				jLabel3 = new JLabel();
				getContentPane().add(jLabel3, new AnchorConstraint(379, 207, 440, 32, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel3.setText("Last Name");
				jLabel3.setPreferredSize(new java.awt.Dimension(67, 16));
			}
			{
				jLabel2 = new JLabel();
				getContentPane().add(jLabel2, new AnchorConstraint(272, 227, 333, 32, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel2.setText("First Name");
				jLabel2.setPreferredSize(new java.awt.Dimension(75, 16));
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1, new AnchorConstraint(47, 769, 108, 449, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				jLabel1.setText("Add Customer");
				jLabel1.setPreferredSize(new java.awt.Dimension(193, 16));
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	protected void insertCustomer(ActionEvent evt) throws SQLException {
		
		Customer customer = new Customer();
		customer.setCprNo(jTextField1.getText());
		customer.setFname(jTextField2.getText());
		customer.setLname(jTextField3.getText());
		customer.setPhoneNo(jTextField4.getText());
		customer.setAddress(jTextField5.getText());
		
		DBCustomer dbcustomer = new DBCustomer();
		dbcustomer.insertCustomer(customer);
		
		
		
	}
	
	

}

*/
